package com.tyf.mybatisFlex.service;

import com.tyf.dubbo.model.Student;
import com.tyf.dubbo.service.StudentService;
import com.tyf.mybatisFlex.mapper.StudentMapper;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.List;

@DubboService(version = "1.0.0",group = "DEFAULT_GROUP")
public class StudentServiceImpl implements StudentService {
    
    @Resource
    private StudentMapper studentMapper;

    @Override
    public List<Student> getStudentList() {
        List<Student> students = studentMapper.selectAll();
        return students;
    }
}
